
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fnt" uri="http://java.sun.com/jsp/jstl/functions" %>
<script type="text/javascript" src="/web/js/define.js"></script>
<div class="subject_con" id="xxxx">
    <c:set var="num" value="${sessionScope.num}"/>
    <h1>${num+1}、${questions.get(num).question.subject}(
        <c:if test="${questions.get(num).question.category.categoryName eq '单选题'}">单选题</c:if>
        <c:if test="${questions.get(num).question.category.categoryName eq '多选题'}">多选题</c:if>
        <c:if test="${questions.get(num).question.category.categoryName eq '判断题'}">判断题</c:if>)
        </h1>
    <table width="272" border="0" cellspacing="0" cellpadding="0" class="selected">
        <c:forEach items="${questions.get(num).question.answers}" var="answers" varStatus="stat">
            <tr>
                <c:if test="${questions.get(num).question.category.categoryName eq '多选题'}" var="ass">
                <td style="width: 60px">
                    <input class="daan1" name="abcd" type="checkbox"/>
                </td>
            </c:if>
                <c:if test="${not ass}"><td style="width: 60px">
                    <input class="daan1" name="abcd" type="radio"></td>
                </c:if>
                <td>${answers.answerContent}</td>
            </tr>
        </c:forEach>
    </table>
    <div class="clear"></div>
    <div class="anwsercon" style="display:none;" >
        <p style="color:#f00;">正确答案为:
            <c:forEach items="${questions.get(num).question.answers}" var="answer" varStatus="stat">
                <c:if test="${answer.trueAnswer ne '1'}">
                    ${answer.answerContent}
                </c:if>
            </c:forEach></p>
        <p class="xiangjie">详解：
            <span class="jiecon" >${questions.get(num).question.explain}</span>
        </p>
    </div>
</div>
<div class="anwsercard">
    <ul class="anwser_ul">

        <c:forEach items="${questions}" var="question" varStatus="start">
            <li><a href="#" data-id="${start.count}" class="datika">${start.count}</a></li>
        </c:forEach>
        <div class="clear"></div>
    </ul>
    <div class="clear"></div>
</div>
